
$(function(){
    var firt = $("#firstt");
    firt.hover(function () {
        var firv = firt.val();
        $.ajax({
            "url":"/index/"+firv,
            "datatype":"JSON",
            "type":"get",
            "success":function (res) {
                for (var i = 0;i < res.length;i++) {
                    firt.append($("\t<div class=\"pop\">\n" +
                        "\t\t\t\t\t\t\t<div class=\"left fl\" >\n" +
                        "\t\t\t\t\t\t\t\t<div>\n" +
                        "\t\t\t\t\t\t\t\t\t<div class=\"xuangou_left fl\">\n" +
                        "\t\t\t\t\t\t\t\t\t\t<a href=\"\">\n" +
                        "\t\t\t\t\t\t\t\t\t\t\t<div class=\"img fl\"><img src=\"/static/before/image/xm6_80.png\" alt=\"\" /></div>\n" +
                        "\t\t\t\t\t\t\t\t\t\t\t<span class=\"fl\" >"+res[i].secname+"</span>\n" +
                        "\t\t\t\t\t\t\t\t\t\t\t<div class=\"clear\"></div>\n" +
                        "\t\t\t\t\t\t\t\t\t\t</a>\n" +
                        "\t\t\t\t\t\t\t\t\t</div>\n" +
                        "\t\t\t\t\t\t\t\t\t<div class=\"xuangou_right fr\">\n" +
                        "\t\t\t\t\t\t\t\t\t\t<a href=\"xiangqing.html\" target=\"_blank\">选购</a>\n" +
                        "\t\t\t\t\t\t\t\t\t</div>\n" +
                        "\t\t\t\t\t\t\t\t\t<div class=\"clear\"></div>\n" +
                        "\t\t\t\t\t\t\t\t</div>\n" +
                        "\t\t\t\t\t\t\t\t\n" +
                        "\t\t\t\t\t\t\t</div>\n" +
                        "\n" +
                        "\t\t\t\t\t\t\t<div class=\"clear\"></div>\n" +
                        "\t\t\t\t\t\t</div>"));
                }
            }
        })
    },function () {
        $(".pop").remove();
    })
});